import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Knowledge from '../views/knowage.vue'
import user from '../views/user.vue'
import server from '../views/server.vue'
import fangke from '../views/fangke.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/knowledge',
    name: 'knowage',
    component: Knowledge
  },
  {
    path: '/user',
    name: 'user',
    component: user
  },
  {
    path: '/fangke',
    name: 'fangke',
    component: fangke
  },
  {
    path: '/server',
    name: 'server',
    component: server
  }
]

const router = new VueRouter({
  routes
})

export default router
